/**
 * 
 */
package fr.thelem.gestiondemandesthelem.web.actions;

import fr.thelem.gestiondemandesthelem.service.IAppliService;

/**
 *
 */
public class MessageAction extends BaseAction {

    /** Attribut serialVersionUID */
    private static final long serialVersionUID = 1L;

    private IAppliService appliService;

    /**
     * Accesseur de appliService
     * 
     * @return le appliService
     */
    public IAppliService getAppliService() {
        return appliService;
    }

    /**
     * Affectation de appliService
     * 
     * @param appliService appliService à affecter
     */
    public void setAppliService(IAppliService appliService) {
        this.appliService = appliService;
    }

    public String execute() throws Exception {
        this.ajouterRoleSession();
        this.ajouterValeurSession("listeMessages", appliService.recupererMessages());
        return SUCCESS;
    }

}
